-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Master.crtp position update #147
Master.crtp position update #147
Conversation
… state information.
…razyflie-firmware into master.crtp_position_update
To clarify the purpose of these commits, it allows the CF2 to be controlled by a motion capture or similar system when the EKF estimate fails or the CF2 starts to move out of LPS range. This is useful in testing or demonstration, as you can provide a virtual safety net of sorts. |
Thanks, this looks good. I only have one comment: I would like this functionality to be put in another file than the commander. Commander.c is already too big and full of random stuff. What about moving the code to extPosition.c or any other name that makes sense? I like the renaming of the commander port in setpoint port. It makes more sense to call it setpoint. |
Shouldn't we use a new "channel" in the commander/setpoint port for the position setpoint rather then occupying a new port? |
No I do not think it should be on the same port: the commander is about setpoint, this is more like an external sensor. To me it makes sense to have them separated. |
I see, the commender is about commanding things and the position is just information. Agreed we should keep them separated. |
Thanks for the feedback! I've moved the external position items to their own file. Let me know if you have any other changes you'd like me to make. I also noticed that libdw1000's submodule wasn't pointing at master as of d38113b and doesn't actually build with |
I merged it. I am not so sure about where to call getExtPosition but this is now together with the kalman code that we intend to clean-up anyway (it would be nice to keep the stabilizer loop generic). Thanks! it is nice to have this in the master banch. |
This pull request adds a new port to CRTP for sending an external position. The commander registers the callback and buffers the data, while the stabilizer calls the commander to queue it's current data.